// 失败的提示
const error = (msg, duration = 2000) => {
	return uni.showToast({
		icon: 'error',
		title: msg,
		duration
	})
}

// 成功的提示
const success = (msg, duration = 2000) => {
	return uni.showToast({
		icon: 'success',
		title: msg,
		duration
	})
}

// none的提示
const none = (msg, duration = 2000) => {
	return uni.showToast({
		icon: 'none',
		title: msg,
		duration
	})
}

export default {
	error,
	success,
	none,
	go,
	
}